#ifndef SERVERLOAD_H
#define SERVERLOAD_H

#include <QObject>
#include <QLabel>
#include <QProgressBar>
#include <QHostAddress>
#include <QWidget>

namespace Ui {
    class ServerLoad;
}

class ServerLoad : public QWidget
{
    Q_OBJECT
public:
    explicit ServerLoad(QWidget *parent = 0);
    ~ServerLoad();

    int getServerNumber();
    void setServerNumber(int number);
    void setServerAddress(const QHostAddress address, quint16 port);
    QLabel* getServerStatus();
    void setServerStatus(QString str);
    int getWorkLoad();
    QHostAddress getServerAddress();
    quint16 getServerPort();

    void setAddress(QString);
    //void setStatus(QString);
    void setWorkLoad(int);

signals:

public slots:

private:
    Ui::ServerLoad *ui;
    int serverNumber;
    QHostAddress serverAddress;
    quint16 serverPort;
};

#endif // SERVERLOAD_H
